package com.backstage.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.backstage.entity.po.SysUser;
import com.backstage.service.testService;

@Controller
@RequestMapping(value="/a")
public class test {
 
	@Autowired
	testService test;
	
	@RequestMapping(value="b",method=RequestMethod.GET)
	public String method(){
		System.out.println("success");
		SysUser sysUser = test.findById("1");
		
	    SysUser sysUser1 = new SysUser();
	    sysUser1.setId("4");
	    sysUser1.setLocked("3");
	    sysUser1.setPassword("3");
	    sysUser1.setSalt("3");
	    sysUser1.setUsercode("3");
	    sysUser1.setUsername("3");
	    test.insertByUser(sysUser1);
		return "a";
	}
}
